import request from '@/utils/request'

// 秒杀优惠劵查询
export const seckillService = ()=>{
    return request.get('/voucher/selectSeckillVoucher');
}

// 抢购秒杀优惠劵并生成订单
export const seckillOrderService = (id)=>{
    return request.post('/voucher-order/seckill/'+id);
}